package cn.example.zjgsu.dao;

import cn.example.zjgsu.pojo.City;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CityMapper {

    int insert(City record);

    City selectByPrimaryKey(Integer id);

    List<City> selectAll();

    City selectByName(String name);

    int getCityId(String name);

}